package com.lantu.wisdom.common.enums.code;

import com.lantu.framework.common.constants.IResponseCode;

/**
 * @Description:
 * @Author: duhui
 * @Date: 2020/8/18 14:11
 */
public enum  ParamResponseCode implements IResponseCode {
    OPENID_ERRO(3001,"openId错误") ,
    ACTIVITY_CODE_ERRO(3002,"活动编码错误"),
    CIRCLE_CODE_ERRO(3003,"圈子编码错误"),
    OPENID_EXIST_ERRO(3004,"openid重复"),
    BT_NAMR_REPEAT(3005,"书籍类型名称重复"),
    BOOK_CODE_ERRO(3006,"书籍编码错误")
    ;

    private int code;
    private String message;

    private ParamResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
